package extendsexamp;

/**
 * @author banana
 * 佳能打印机，继承了打印机类
 * 继承了 open() print() close
 * 新增   clean()
 * 重写   close()
 */
public class CanonPrinter extends Printer {
    void clean(){
        System.out.println("清除");
    }

    @Override
    void close(){
        clean();
        System.out.println("关闭");

    }
}
